#define _CRT_SECURE_NO_WARNINGS
#define swap(a,b) {int t; t=a;a=b;b=t;}
#include<stdio.h>
int main()
{
	int i, j, a[10], b[10];
	printf("Input 10 integers:\n");
	for (i = 0; i < 10; i++)
	{
		scanf("%d", &a[i]);
	}
	printf("Input another 10 integers:\n");
	for (j = 0; j < 10; j++)
	{
		scanf("%d", &b[j]);
	}
	printf("\nthe array a is:\n");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\nthe array b is:\n");
	for (j = 0; j < 10; j++)
	{
		printf("%d ", b[j]);
	}
	printf("\nswap a and b:\n");
	for (i = 0; i < 10; i++)
	{
		swap(a[i], b[i]);
	}
	printf("now the array a is:\n");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\nnow the array b is:\n");
	for (j = 0; j < 10; j++)
	{
		printf("%d ", b[j]);
	}
	return 0;
}